package com.hqyj.onlineExamination.modules.exam.service;


import com.github.pagehelper.PageInfo;
import com.hqyj.onlineExamination.modules.common.entity.ResultEntity;
import com.hqyj.onlineExamination.modules.common.entity.SearchBean;
import com.hqyj.onlineExamination.modules.exam.entity.Paper;

import java.util.Map;

public interface PaperService {

    //根据试卷id查到试卷全部内容
     ResultEntity<Map<String,Object>> getAllPaperById(int id);

    Paper getPaperById(int id);

    Paper getPaperBySubject(String subject);

    ResultEntity<Paper> insertPaper(Paper paper);

    ResultEntity<Paper> updatePaper(Paper paper);

    ResultEntity<Paper> deletePaperById(int id);

    PageInfo<Paper> getPapersBySearchBean(SearchBean searchBean);

}
